package com.service.impl;

import com.entity.Dept;
import com.mapper.DeptMapper;
import com.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
	//自动注入
	@Autowired
	private DeptMapper deptMapper;
	@Override
	public boolean addDept(Dept dept) {
	return deptMapper.addDept(dept);
	}
	@Override
	public Dept queryById(Long id) {
	return deptMapper.queryById(id);
	}
	@Override
	public List<Dept> queryAll() {
		return deptMapper.queryAll();
	}
}